
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-3.6.4.js"></script>

</head>
<body>
<script>
    <% String transfer=request.getParameter("transfer");%>
    <c:set var="transfer" value="<%=transfer%>"></c:set>
    window.onload=function(){
        var index = parent.layer.getFrameIndex(window.name);
        //刷新父页面
        parent.location.reload();
        //关闭当前frame
        parent.layer.close(index);
        <c:if test="${transfer==movie}">
            window.location="${pageContext.request.contextPath}/MovieServlet?prom=showAll";
        </c:if>
        <c:if test="${transfer==updMovie}">
            window.location="${pageContext.request.contextPath}/MovieServlet?prom=showAll";
        </c:if>
        <c:if test="${transfer==adminAdd}">
            window.location="${pageContext.request.contextPath}/ManageuserServlet?prom=showAll";
        </c:if>
        <c:if test="${transfer==adminEdit}">
            window.location="${pageContext.request.contextPath}/ManageuserServlet?prom=showAll";
        </c:if>
        <c:if test="${transfer==addCinema}">
        window.location="${pageContext.request.contextPath}/CinemaServlet?prom=showAll";
        </c:if>
        <c:if test="${transfer==updCinema}">
        window.location="${pageContext.request.contextPath}/CinemaServlet?prom=showAll";
        </c:if>
    };

</script>
</body>
</html>
